package gx.dao.impl.common;

import java.util.List;

import org.springframework.stereotype.Repository;

import gx.dao.CategoryDao;
import gx.entity.Category;

@Repository
public class CategoryDaoImpl extends BaseDaoImpl<Category> implements CategoryDao {

	public List<Category> findByName(String name) {
		return find("from Category where name like?", "%" + name + "%");
	}
}
